Location:
Search - c ftp
Search list
Description: 实验七:C++编程入门
一、实验内容
1. 理解继承与组合。
2. 学会使用多态特性。
3. 使用文件。
4. 异常处理。
二、实验题目
1. 创建一个class Counted,包含一个int类型的成员变量id和一个static int类型的成员变量count。默认构造函数的开头为“Counted() : id(count ++) {”。要求:
a) 构造函数输出id值并且输出“it’s being created”;
b) 析构函数也输出id值并且输出“it is being destroyed”;
c) 使用new创建一个class Counted的对象,并且用delete销毁它;
d) 使用new创建一个class Counted的对象数组,并且用delete[]销毁它;
2. 使用继承的方法,编写一个点类Point和线段类Line。要求:点以(x, y)的形式打印坐标的值;线段以上述形式打印两端点的坐标(x1, y1)、(x2,y2),并设计计算线段长度的内联函数。
3. 创建一个简单的Shape层次:基类称为Shape,派生类分别为Circle、Square和Triangle。在基类中定义一个虚函数draw(),然后再在这些派生类中定义这个函数。在堆中创建Shape对象,并建立一个指向这些Shape对象的指针数组(这样就形成了指针向上类型转换),通过基类指针调用draw(),检验虚函数的行为。
4. 利用c++继承、多态虚函数、构造函数完成以下程序:设计人、老师、学生、大学生、研究生、大四学生等类、其主要属性自己定义,要求包括以下方法:
1) 构造函数,创建对象的主要信息
2) Display,显示每种类对象的主要信息
此外,要求每个类包含一个生日对象,其类型为Birthday类,学生类应该包含一个班主任对象,其类型为老师类。
利用研究生类创建一个数组,来存储一个班级的学生信息,将其写入硬盘文件,再读出来进行显示。读写文件失败时要进行异常处理。
三、实验要求
将程序源代码压缩后提交至学院FTP上对应实验和班级的目录中。
作业命名方式为:“学号姓名.rar”。
作业提交时间:下次实验课前提交。
Platform: |
Size: 9677 |
Author: zhuchao0731@163.com |
Hits:
Description: ftp client c++ full source
Platform: |
Size: 1040331 |
Author: kh_kdz |
Hits:
Description: 网络管理程序。含ping,ftp,smtp等功能 -Network manage app , having ping , ftp and smtp etc
Platform: |
Size: 323584 |
Author: 站长 |
Hits:
Description: Delphi/C++Builder
Platform: |
Size: 94208 |
Author: 站长 |
Hits:
Description: war ftp服务器-war ftp server
Platform: |
Size: 436224 |
Author: 站长 |
Hits:
Description: Delphi/C++Builder
Platform: |
Size: 138240 |
Author: 站长 |
Hits:
Description: 站长写的一个使用FTP自动更新应用系统文件的程序,可以自动拨号- Stationmaster writes uses FTP automatically to renew the
application system document the procedure, may the automatic digit
dialing
Platform: |
Size: 62464 |
Author: 站长 |
Hits:
Description: 一个FTP工具C源码Miniftp- FTP tool C source code Miniftp
Platform: |
Size: 0 |
Author: |
Hits:
Description: 一个ftp的程序 同时是学习界面编程的好例子-Ftp at the same time a process of learning a good example of programming interface
Platform: |
Size: 109568 |
Author: 逄栋 |
Hits:
Description: 一个简单的FTP客户器-a simple FTP client device
Platform: |
Size: 21504 |
Author: DXK94158 |
Hits:
Description: An Overview of the C++ Programming Language 来自南开大学,公网ftp-An Overview of the C Programming Language to Since Nankai University, the public network ftp
Platform: |
Size: 128000 |
Author: 小云 |
Hits:
Description: 一个TFTP软件-a TFTP software
Platform: |
Size: 1265664 |
Author: 匡胜 |
Hits:
Description: 用c写的ftp客户端源代码,可以在UNIX,Windows下编译通过,学习的好代码!-used to write the ftp client source code, in UNIX, Windows compile and study the good code!
Platform: |
Size: 41984 |
Author: 王石 |
Hits:
Description: 伯克利大学的一个ftp协议的实现源代码,包括客户端和服务器端.-a University of California, Berkeley ftp protocol implemented the source code, including the client and server side.
Platform: |
Size: 38912 |
Author: 王石 |
Hits:
Description: 因特网应用高级编程包括Finger/FTP/Gopher/Http/IsAPI/Ping/RAS/Telnet等-Internet applications including high-level programming Finger/FTP/Gopher/Http/IsAPI/Ping/RAS/Telnet, etc.
Platform: |
Size: 5928960 |
Author: 韦功成 |
Hits:
Description: FTP client library for C#
Platform: |
Size: 784384 |
Author: 张强 |
Hits:
Description:
Platform: |
Size: 64512 |
Author: 柳旋 |
Hits:
Description: 这是用C#编写的免费的 .NET FTP客户端库。-This is the C# prepared free of charge.NET FTP client library.
Platform: |
Size: 8192 |
Author: paobuzou |
Hits:
Description: 这篇文章后对于BCB开发人员来说,不仅可以对 FlashGet 等软件的开发原理有一定的了解,特别是在开发组件方面也有很大的指导作用,请耐心的将它看完。很简单-this article for the BCB after the developers, not only to FlashGet software development tenets of a certain understanding, especially in the development of components are also great role in guiding, patient reading it. Very simple! !
Platform: |
Size: 93184 |
Author: 代泽伟 |
Hits:
Description: C#的FTP,是在控制台下开发的-C# FTP, in the development of the console
Platform: |
Size: 38912 |
Author: ygh |
Hits: